package com.glorysoft.hlgdpda.base

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.glorysoft.hlgdpda.BR
import com.glorysoft.hlgdpda.entity.AuthorityListEntity
import rxhttp.wrapper.annotation.Domain

/**
 * FileName: Constant
 * Author: XJH
 * Date: 2021/5/13 11:37
 * Description:
 * History:
 */
class Constant {

    companion object : BaseObservable() {
        @get:Bindable
        var REQUEST_URL_DEBUG: String = "http://192.168.33.247:8080" //接口地址
            set(value) {
                field = value
                // 只更新本字段
                notifyPropertyChanged(BR.rEQUEST_URL_DEBUG)

                // 更新所有字段
//                notifyChange()
            }

        @get:Bindable
        var FILE_URL: String = "http://192.168.33.247:8000/PDADEBUG/Version.txt" //APK下载地址
            set(value) {
                field = value
                notifyPropertyChanged(BR.fILE_URL)
            }

        var CURRENT_USER: String = ""

        var VRESION: String = "1.0"

        var AUTHORITYLIST : ArrayList<String> = arrayListOf()


//        @Domain(name = "Mes", className = "Mes")
//        @JvmField
//        var MES_URL: String = "$REQUEST_URL_DEBUG/esbrest/RestService/postrequest"
    }
}